package com.mimosa.common.system.user;


public class DevelopmentUserContext implements UserContext {
	private TUser userEntity = null;

	public DevelopmentUserContext() {
		this.userEntity = new TUser();
		this.userEntity.setId("1");
		this.userEntity.setUserName("admin");
		this.userEntity.setRealName("开发管理员");
		this.userEntity.setSecretLevel(0);

	}

	@Override
	public String currentUserName() {
		return currentUser().getUserName();
	}

	@Override
	public String currentUserId() {
		return currentUser().getId();
	}

	@Override
	public TUser currentUser() {
		return this.userEntity;
	}

	@Override
	public String currentRealName() {
		return currentUser().getRealName();
	}

	@Override
	public Integer currentUserSecretLevel() {
		return currentUser().getSecretLevel();
	}

	@Override
	public String currentCustomerId() {
		// TODO Auto-generated method stub
		return null;
	}
}
